<template>
  <div class="top clearfix">
    <div class="title">{{ top.title }}</div>
    <div class="info-box">
      <span class="top-icon"></span>
      <div class="author">{{ top.author }}</div>
      <div class="time">
        {{ top.release_timestamp | dateFtt('yyyy-MM-dd hh:mm:ss') }}
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    top: {
      default: {}
    }
  }
};
</script>

<style lang="scss" scoped>
.ad-box {
  margin-bottom: 0px;
  text-align: center;
}
.top {
  padding: 34px 0;
  margin: 0 28px;
  border-bottom: 2px solid rgba(12, 12, 28, 0.04);
  .title {
    color: #0c0c1c;
    font-size: 32px;
    padding-bottom: 15px;
    font-weight: 700;
  }
  .info-box {
    overflow: hidden;
    height: 36px;
    line-height: 36px;
  }
  .top-icon {
    float: left;
    width: 24px;
    height: 25px;
    background: url('../../assets/img/top@2x.png') no-repeat center;
    background-size: contain;
    padding-top: 7px;
  }
  .author {
    float: left;
    color: rgba(12, 12, 28, 0.7);
    font-size: 20px;
    padding-left: 8px;
  }
  .time {
    float: left;
    color: rgba(12, 12, 28, 0.7);
    font-size: 20px;
    padding-left: 32px;
  }
}
</style>
